package com.nuc.ocp1;

/**
 * Time    : 2023/3/24 17:25
 * Author  : 王摇摆
 * FileName: High.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class HighExercise1 implements IExercise1 {
    private Double price;
    private String name;

    public HighExercise1(Double price, String name) {
        this.price = price;
        this.name = name;
    }

    public HighExercise1() {
    }


    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
